package com.softlab.retailwholesalesystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_user")
@AllArgsConstructor
@NoArgsConstructor
public class UserEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer userId;
    private String username;
    private String password;
    private String salt;
    @TableField(exist = false)
    private Integer roleId;
    private String roleName;
    private String telephone;
    private String sex;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    private Integer isDelete;
}
